<template>
  <div class="app-container">
    <el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch" label-width="68px">
      <el-form-item label="社区名称" prop="name">
        <el-input
          v-model="queryParams.name"
          placeholder="请输入社区名称"
          clearable
          @keyup.enter="handleQuery"
        />
      </el-form-item>
      <el-form-item label="地图位置" prop="mapLocation">
        <el-input
          v-model="queryParams.mapLocation"
          placeholder="请输入地图位置"
          clearable
          @keyup.enter="handleQuery"
        />
      </el-form-item>
      <el-form-item label="占地面积" prop="area">
        <el-input
          v-model="queryParams.area"
          placeholder="请输入占地面积"
          clearable
          @keyup.enter="handleQuery"
        />
      </el-form-item>
      <el-form-item label="建筑面积" prop="buildingArea">
        <el-input
          v-model="queryParams.buildingArea"
          placeholder="请输入建筑面积"
          clearable
          @keyup.enter="handleQuery"
        />
      </el-form-item>
      <el-form-item label="公共场所面积" prop="publicArea">
        <el-input
          v-model="queryParams.publicArea"
          placeholder="请输入公共场所面积"
          clearable
          @keyup.enter="handleQuery"
        />
      </el-form-item>
      <el-form-item label="绿化面积" prop="greenArea">
        <el-input
          v-model="queryParams.greenArea"
          placeholder="请输入绿化面积"
          clearable
          @keyup.enter="handleQuery"
        />
      </el-form-item>
      <el-form-item label="车位面积" prop="parkingArea">
        <el-input
          v-model="queryParams.parkingArea"
          placeholder="请输入车位面积"
          clearable
          @keyup.enter="handleQuery"
        />
      </el-form-item>
      <el-form-item label="负责人" prop="userId">
        <el-select
          v-model="queryParams.userId"
          placeholder="请选择负责人"
          clearable
          filterable
        >
          <el-option v-for="u in users" :label="u.nickName || u.userName" :value="u.userId" />
        </el-select>
      </el-form-item>
      <el-form-item label="是否删除" prop="isDeleted">
        <el-input
          v-model="queryParams.isDeleted"
          placeholder="请输入是否删除"
          clearable
          @keyup.enter="handleQuery"
        />
      </el-form-item>
    </el-form>

    <el-row :gutter="10" class="mb8">
      <el-col :span="1.5">
        <el-button
          type="primary"
          plain
          icon="Plus"
          @click="handleAdd"
          v-hasPermi="['comsys:mange:add']"
        >新增</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="success"
          plain
          icon="Edit"
          :disabled="single"
          @click="handleUpdate"
          v-hasPermi="['comsys:mange:edit']"
        >修改</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="danger"
          plain
          icon="Delete"
          :disabled="multiple"
          @click="handleDelete"
          v-hasPermi="['comsys:mange:remove']"
        >批量删除</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="warning"
          plain
          icon="Download"
          @click="handleExport"
          v-hasPermi="['comsys:mange:export']"
        >导出</el-button>
      </el-col>
      <!-- 在现有按钮区域添加导入按钮 -->
      <el-col :span="1.5">
        <el-button
            type="success"
            plain
            icon="Upload"
            @click="handleImport"
            v-hasPermi="['comsys:mange:import']"
        >导入</el-button>
      </el-col>
      <el-form-item>
        <el-button type="primary" icon="Search" @click="handleQuery">搜索</el-button>
        <el-button icon="Refresh" @click="resetQuery">重置</el-button>
      </el-form-item>
      <right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
    </el-row>

    <el-table v-loading="loading" :data="mangeList" @selection-change="handleSelectionChange">
      <el-table-column type="selection" width="55" align="center" />
      <el-table-column label="社区ID" align="center" prop="communityId" />
      <el-table-column label="社区名称" align="center" prop="name" />
      <el-table-column label="详细地址" align="center" prop="address" />
      <el-table-column label="地图位置" align="center" prop="mapLocation" />
      <el-table-column label="占地面积" align="center" prop="area">
        <template #default="scope">
          <span>{{ scope.row.area ? scope.row.area + '㎡' : '-' }}</span>
        </template>
      </el-table-column>
      <el-table-column label="建筑面积" align="center" prop="buildingArea">
        <template #default="scope">
          <span>{{ scope.row.buildingArea ? scope.row.buildingArea + '㎡' : '-' }}</span>
        </template>
      </el-table-column>
      <el-table-column label="公共场所面积" align="center" prop="publicArea">
        <template #default="scope">
          <span>{{ scope.row.publicArea ? scope.row.publicArea + '㎡' : '-' }}</span>
        </template>
      </el-table-column>
      <el-table-column label="绿化面积" align="center" prop="greenArea">
        <template #default="scope">
          <span>{{ scope.row.greenArea ? scope.row.greenArea + '㎡' : '-' }}</span>
        </template>
      </el-table-column>
      <el-table-column label="车位面积" align="center" prop="parkingArea">
        <template #default="scope">
          <span>{{ scope.row.parkingArea ? scope.row.parkingArea + '㎡' : '-' }}</span>
        </template>
      </el-table-column>

      <el-table-column label="社区描述" align="center" prop="description" />
      <el-table-column label="社区图片" align="center" prop="images">
        <template #default="scope">
          <div v-if="scope.row.images" class="table-image-container">
            <el-image
                :src="scope.row.images"
                :preview-src-list="[scope.row.images]"
                class="table-preview-item"
                fit="cover"
                lazy
            />
          </div>
          <span v-else>无图片</span>
        </template>
      </el-table-column>
      <el-table-column label="负责人id" align="center" prop="userId" />
      <el-table-column label="状态" align="center" prop="status"/>
      <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
        <template #default="scope">
          <el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)" v-hasPermi="['comsys:mange:edit']">修改</el-button>
          <el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)" v-hasPermi="['comsys:mange:remove']">删除</el-button>
        </template>
      </el-table-column>
    </el-table>

    <pagination
      v-show="total>0"
      :total="total"
      v-model:page="queryParams.pageNum"
      v-model:limit="queryParams.pageSize"
      @pagination="getList"
    />

    <!-- 添加或修改项目管理对话框 -->
    <el-dialog :title="title" v-model="open" width="500px" append-to-body>
      <el-form ref="mangeRef" :model="form" :rules="rules" label-width="108px">
        <el-form-item label="社区名称" prop="name">
          <el-input v-model="form.name" placeholder="请输入社区名称" />
        </el-form-item>
        <el-form-item label="详细地址" prop="address">
          <el-input v-model="form.address" type="textarea" placeholder="请输入内容" />
        </el-form-item>
        <el-form-item label="地图位置" prop="mapLocation">
          <el-input
              v-model="form.mapLocation"
              placeholder="请输入地图位置或点击定位图标选择位置"
              clearable
          >
            <template #append>
              <el-button
                  :icon="Location"
                  @click="openMao"
                  title="打开地图选点"
              />
            </template>
          </el-input>
        </el-form-item>

        <!-- 显示定位详细信息 -->
        <el-form-item label="经纬度" v-if="locationDetails.latitude">
          <span>{{ locationDetails.latitude }}, {{ locationDetails.longitude }}</span>
        </el-form-item>
        <el-form-item label="占地面积" prop="area">
          <el-input v-model="form.area" placeholder="请输入占地面积" />
        </el-form-item>
        <el-form-item label="建筑面积" prop="buildingArea">
          <el-input v-model="form.buildingArea" placeholder="请输入建筑面积" />
        </el-form-item>
        <el-form-item label="公共场所面积" prop="publicArea">
          <el-input v-model="form.publicArea" placeholder="请输入公共场所面积" />
        </el-form-item>
        <el-form-item label="绿化面积" prop="greenArea">
          <el-input v-model="form.greenArea" placeholder="请输入绿化面积" />
        </el-form-item>
        <el-form-item label="车位面积" prop="parkingArea">
          <el-input v-model="form.parkingArea" placeholder="请输入车位面积" />
        </el-form-item>
        <el-form-item label="社区描述" prop="description">
          <el-input v-model="form.description" type="textarea" placeholder="请输入内容" />
        </el-form-item>
        <!-- 图片上传 -->
        <el-form-item label="图片(JSON数组)" prop="images">
          <el-upload
              class="avatar-uploader"
              action="http://localhost:8080/upload/img"
              :show-file-list="false"
              :on-success="handleAvatarSuccess"
              :before-upload="beforeAvatarUpload"
              :headers="headers"
          >
            <img v-if="form.images" :src="form.images" class="avatar"/>
            <el-icon v-else class="avatar-uploader-icon">
              <Plus/>
            </el-icon>
          </el-upload>
        </el-form-item>
        <el-form-item label="负责人" prop="userId">
          <el-select v-model="form.userId" placeholder="请选择负责人" clearable filterable>
            <el-option v-for="u in users" :label="u.nickName || u.userName" :value="u.userId" />
          </el-select>
        </el-form-item>
        <el-form-item label="状态" prop="status">
            <el-select v-model="form.status" placeholder="请选择或输入状态" clearable filterable allow-create>
              <el-option label="有效" value="有效"></el-option>
              <el-option label="空置" value="空置"></el-option>
            </el-select>
          </el-form-item>
        <el-form-item label="是否删除" prop="isDeleted">
          <el-input v-model="form.isDeleted" placeholder="请输入是否删除" />
        </el-form-item>
      </el-form>
      <template #footer>
        <div class="dialog-footer">
          <el-button type="primary" @click="submitForm">确 定</el-button>
          <el-button @click="cancel">取 消</el-button>
        </div>
      </template>
    </el-dialog>

    <!-- 添加导入对话框 -->
    <el-dialog :title="upload.title" v-model="upload.open" width="400px" append-to-body>
      <div style="text-align: center; padding: 20px 0;">
        <el-upload
            ref="uploadRef"
            :limit="1"
            accept=".xlsx, .xls"
            :auto-upload="false"
            :on-exceed="handleExceed"
            :on-change="handleFileChange"
            :file-list="fileList"
        >
          <el-button type="primary">选择文件</el-button>
          <template #tip>
            <div class="el-upload__tip text-center">
              <span>仅允许导入xls、xlsx格式文件。</span>
              <el-link type="primary" class="link-type" @click="handleTemplate">下载模板</el-link>
            </div>
          </template>
        </el-upload>
      </div>

      <template #footer>
        <div class="dialog-footer">
          <el-button type="primary" @click="submitFileForm" :loading="upload.isUploading">确 定</el-button>
          <el-button @click="upload.open = false">取 消</el-button>
        </div>
      </template>
    </el-dialog>
  </div>
</template>

<script setup name="Mange">
import { listMange, getMange, delMange, addMange, updateMange } from "@/api/comsys/mange"
import { importBuilding } from "@/api/comsys/mange"
import { listUser } from "@/api/system/user"
import { ref, reactive } from 'vue'
import {getToken} from "@/utils/auth.js";

import { Plus } from '@element-plus/icons-vue'
import {ElMessage, ElMessageBox} from "element-plus";
import { Location } from '@element-plus/icons-vue'

const { proxy } = getCurrentInstance()
const router = useRouter()

const mangeList = ref([])
const open = ref(false)
const loading = ref(true)
const showSearch = ref(true)
const ids = ref([])
const single = ref(true)
const multiple = ref(true)
const total = ref(0)
const title = ref("")

const data = reactive({
  form: {},
  queryParams: {
    pageNum: 1,
    pageSize: 10,
    name: null,
    address: null,
    mapLocation: null,
    area: null,
    buildingArea: null,
    publicArea: null,
    greenArea: null,
    parkingArea: null,
    description: null,
    images: null,
    userId: null,
    status: null,
    isDeleted: null
  },
})

const { queryParams, form, rules } = toRefs(data)

/** 查询项目管理列表 */
function getList() {
  loading.value = true
  listMange(queryParams.value).then(response => {
    mangeList.value = response.rows
    total.value = response.total
    loading.value = false
  })
}

// 取消按钮
function cancel() {
  open.value = false
  reset()
}

// 表单重置
function reset() {
  form.value = {
    communityId: null,
    name: null,
    address: null,
    mapLocation: '',
    area: null,
    buildingArea: null,
    publicArea: null,
    greenArea: null,
    parkingArea: null,
    description: null,
    images: null,
    userId: null,
    createTime: null,
    updateTime: null,
    status: null,
    isDeleted: null
  }
  proxy.resetForm("mangeRef")
}

/** 搜索按钮操作 */
function handleQuery() {
  queryParams.value.pageNum = 1
  getList()
}

/** 重置按钮操作 */
function resetQuery() {
  proxy.resetForm("queryRef")
  handleQuery()
}

// 多选框选中数据
function handleSelectionChange(selection) {
  ids.value = selection.map(item => item.communityId)
  single.value = selection.length != 1
  multiple.value = !selection.length
}

/** 新增按钮操作 */
function handleAdd() {
  reset()
  open.value = true
  title.value = "添加项目管理"
}

/** 修改按钮操作 */
function handleUpdate(row) {
  reset()
  const _communityId = row.communityId || ids.value
  getMange(_communityId).then(response => {
    form.value = response.data
    open.value = true
    title.value = "修改项目管理"
  })
}

/** 提交按钮 */
function submitForm() {
  proxy.$refs["mangeRef"].validate(valid => {
    if (valid) {
      if (form.value.communityId != null) {
        updateMange(form.value).then(response => {
          proxy.$modal.msgSuccess("修改成功")
          open.value = false
          getList()
        })
      } else {
        addMange(form.value).then(response => {
          proxy.$modal.msgSuccess("新增成功")
          open.value = false
          getList()
        })
      }
    }
  })
}

/** 删除按钮操作 */
function handleDelete(row) {
  const _communityIds = row.communityId || ids.value
  proxy.$modal.confirm('是否确认删除项目管理编号为"' + _communityIds + '"的数据项？').then(function() {
    return delMange(_communityIds)
  }).then(() => {
    getList()
    proxy.$modal.msgSuccess("删除成功")
  }).catch(() => {})
}

/** 导出按钮操作 */
function handleExport() {
  proxy.download('comsys/mange/export', {
    ...queryParams.value
  }, `mange_${new Date().getTime()}.xlsx`)
}

/** 图片上传操作 */
const headers = ref({ Authorization: "Bearer " + getToken() })

//头像上传
const handleAvatarSuccess = (
    response
) => {
  ElMessage.success("上传成功")
  form.value.images = response.msg
  // console.log(response)
}

const beforeAvatarUpload = (rawFile) => {
  if (rawFile.type !== 'image/jpeg') {
    ElMessage.error('Avatar picture must be JPG format!')
    return false
  } else if (rawFile.size / 1024 / 1024 > 2) {
    ElMessage.error('Avatar picture size can not exceed 2MB!')
    return false
  }
  return true
}

/** 导入按钮操作 */
const upload = reactive({
  // 是否显示弹出层
  open: false,
  // 弹出层标题
  title: "",
  // 是否禁用上传
  isUploading: false
});

const fileList = ref([]);
const uploadRef = ref(null);

// 导入按钮操作
function handleImport() {
  router.push({ path: '/comsys/mange/import' })
}

// 打开地图选点页面（携带来源标记与当前坐标，跳转前记录并关闭弹窗）
function openMao() {
  const from = form.value.communityId ? 'edit' : 'add'
  const coords = form.value.mapLocation ? encodeURIComponent(String(form.value.mapLocation)) : ''
  try {
    localStorage.setItem('MANGE_MODAL_STATE', JSON.stringify({ from, wasOpen: open.value, title: title.value }))
    localStorage.setItem('MANGE_FORM_SNAPSHOT', JSON.stringify(form.value || {}))
    if (from === 'edit' && form.value.communityId) {
      localStorage.setItem('MANGE_EDIT_ID', String(form.value.communityId))
    }
  } catch (e) {}
  // 跳转前隐藏弹窗
  open.value = false
  router.push({ path: '/comsys/mange/mao', query: { from, location: coords } })
}

// 文件上传相关函数
function handleExceed() {
  proxy.$modal.msgError("只能上传一个文件");
}

function handleFileChange(file, fileList) {
  this.fileList = fileList;
}

// 下载模板
function handleTemplate() {
  proxy.download("comsys/mange/importTemplate", {}, `mange_template.xlsx`);
}

// 提交上传文件
function submitFileForm() {
  if (fileList.value.length === 0) {
    proxy.$modal.msgError("请选择上传文件");
    return;
  }

  upload.isUploading = true;

  // 创建 FormData 对象
  const formData = new FormData();
  formData.append("file", fileList.value[0].raw);

  // 调用导入 API
  importBuilding(formData)
      .then(response => {
        upload.open = false;
        proxy.$modal.msgSuccess(response.msg);
        getList();
      })
      .catch(err => {
        console.error(err);
        proxy.$modal.msgError("导入失败");
      })
      .finally(() => {
        upload.isUploading = false;
      });
}

//地图地位
//地图定位
// const form = reactive({
//   mapLocation: '',
// })

const locating = ref(false)
const locationDetails = reactive({
  latitude: '',
  longitude: '',
  address: ''
})

const getCurrentLocation = async () => {
  // 检查浏览器支持
  if (!navigator.geolocation) {
    ElMessage.error('您的浏览器不支持地理位置服务')
    return
  }

  // 检查是否在安全上下文中（HTTPS）
  if (!window.isSecureContext) {
    ElMessage.warning('定位功能需要在安全环境（HTTPS）下使用')
    return
  }

  locating.value = true

  try {
    const position = await new Promise((resolve, reject) => {
      navigator.geolocation.getCurrentPosition(resolve, reject, {
        enableHighAccuracy: false, // 降低精度要求，避免被拦截
        timeout: 8000,
        maximumAge: 300000 // 5分钟缓存
      })
    })

    const { latitude, longitude } = position.coords
    form.mapLocation = `${latitude.toFixed(6)}, ${longitude.toFixed(6)}`
    ElMessage.success('定位成功')

  } catch (error) {
    console.error('定位错误:', error)
    await handleLocationError(error)
  } finally {
    locating.value = false
  }
}

const handleLocationError = async (error) => {
  let errorMessage = '定位失败'
  let showManualInput = false

  switch(error.code) {
    case error.PERMISSION_DENIED:
      errorMessage = '位置权限被拒绝，请在浏览器设置中允许位置访问'
      showManualInput = true
      break
    case error.POSITION_UNAVAILABLE:
      errorMessage = '位置信息不可用，请检查网络连接'
      showManualInput = true
      break
    case error.TIMEOUT:
      errorMessage = '定位请求超时'
      showManualInput = true
      break
    default:
      // 处理被扩展程序拦截的情况
      if (error.message.includes('blocked') || error.message.includes('ERR_BLOCKED')) {
        errorMessage = '定位请求被浏览器扩展拦截，请暂时禁用广告拦截器或尝试手动输入'
        showManualInput = true
      } else {
        errorMessage = '定位失败，请尝试手动输入位置'
        showManualInput = true
      }
  }

  ElMessage.error(errorMessage)

  // 如果定位失败，提示用户手动输入
  if (showManualInput) {
    try {
      await ElMessageBox.confirm(
          '自动定位失败，是否手动输入位置信息？',
          '定位提示',
          {
            confirmButtonText: '手动输入',
            cancelButtonText: '取消',
            type: 'warning'
          }
      )
      // 用户选择手动输入，可以在这里添加额外的逻辑
    } catch {
      // 用户取消
    }
  }
}

// const rules = reactive({
//   mapLocation: [
//     { required: true, message: '请输入地图位置', trigger: 'blur' }
//   ]
// })

const formRef = ref()

// 从本地存储恢复弹窗和表单，仅在有选点时更新地址
function restoreAfterMapReturn() {
  let modalState = null
  let snapshot = null
  try {
    const ms = localStorage.getItem('MANGE_MODAL_STATE')
    if (ms) modalState = JSON.parse(ms)
    const snapRaw = localStorage.getItem('MANGE_FORM_SNAPSHOT')
    if (snapRaw) snapshot = JSON.parse(snapRaw)
  } catch (e) {}

  let picked = null
  try {
    const raw = localStorage.getItem('MANGE_MAP_SELECTION')
    if (raw) {
      const s = JSON.parse(raw)
      // 仅保存经纬度到地图位置
      picked = `${s.lng},${s.lat}`
    }
  } catch (e) {}

  const from = (modalState && modalState.from) || router.currentRoute.value.query?.from
  if (from === 'add') {
    if (snapshot && modalState?.wasOpen) {
      form.value = snapshot
      if (picked) {
        form.value.mapLocation = picked
        try { localStorage.removeItem('MANGE_MAP_SELECTION') } catch (e) {}
      }
      title.value = '添加项目管理'
      open.value = true
      try { localStorage.removeItem('MANGE_MODAL_STATE') } catch (e) {}
      try { localStorage.removeItem('MANGE_FORM_SNAPSHOT') } catch (e) {}
      return
    }
    if (picked) {
      form.value.mapLocation = picked
      try { localStorage.removeItem('MANGE_MAP_SELECTION') } catch (e) {}
      title.value = '添加项目管理'
      open.value = true
    }
    try { localStorage.removeItem('MANGE_MODAL_STATE') } catch (e) {}
    try { localStorage.removeItem('MANGE_FORM_SNAPSHOT') } catch (e) {}
  } else if (from === 'edit') {
    if (snapshot && modalState?.wasOpen) {
      form.value = snapshot
      if (picked) {
        form.value.mapLocation = picked
        try { localStorage.removeItem('MANGE_MAP_SELECTION') } catch (e) {}
      }
      title.value = '修改项目管理'
      open.value = true
      try { localStorage.removeItem('MANGE_EDIT_ID') } catch (e) {}
      try { localStorage.removeItem('MANGE_MODAL_STATE') } catch (e) {}
      try { localStorage.removeItem('MANGE_FORM_SNAPSHOT') } catch (e) {}
      return
    }
    const idRaw = localStorage.getItem('MANGE_EDIT_ID')
    const id = idRaw ? Number(idRaw) : null
    const afterFetch = () => {
      if (picked) {
        form.value.mapLocation = picked
        try { localStorage.removeItem('MANGE_MAP_SELECTION') } catch (e) {}
        title.value = '修改项目管理'
        open.value = true
      }
      try { localStorage.removeItem('MANGE_EDIT_ID') } catch (e) {}
      try { localStorage.removeItem('MANGE_MODAL_STATE') } catch (e) {}
      try { localStorage.removeItem('MANGE_FORM_SNAPSHOT') } catch (e) {}
    }
    if (id) {
      getMange(id).then(response => {
        form.value = response.data
      }).finally(afterFetch)
    } else {
      afterFetch()
    }
  } else {
    try { localStorage.removeItem('MANGE_MODAL_STATE') } catch (e) {}
    try { localStorage.removeItem('MANGE_FORM_SNAPSHOT') } catch (e) {}
  }
}

onMounted(() => {
  restoreAfterMapReturn()
})

// 处理 keep-alive 场景下返回页面激活
onActivated(() => {
  restoreAfterMapReturn()
})
function initUsers() {
  listUser({ pageNum: 1, pageSize: 999 }).then(res => {
    users.value = res.rows || []
  })
}
getList()
</script>

<style scoped>
.avatar-uploader, .avatar-uploader.el-upload {
  border: 1px dashed var(--el-border-color);
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  width: 178px;
  height: 178px;
}
.avatar-uploader:hover { border-color: var(--el-color-primary); }
.avatar-uploader-icon {
  font-size: 28px;
  color: #8c939d;
  width: 178px;
  height: 178px;
  line-height: 178px;
  text-align: center;
}
.avatar-uploader .avatar {
  width: 178px;
  height: 178px;
  object-fit: cover;
  display: block;
}
</style>

<style scoped>
/* 作用于整个表单 */
 :deep(.el-form) {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap:2px 30px;
   grid-auto-flow: dense; /* 支持跨列元素 */
 }

/* 让 textarea、图片上传等宽元素占满两列 */
:deep(.el-form-item--large),
:deep(.el-form-item[label='详细地址']),
:deep(.el-form-item[label='社区描述']),
:deep(.el-form-item[label='图片(JSON数组)']),
:deep(.el-form-item[label='经纬度']) {
  grid-column: span 2;
}

/* 可选：调整 label 宽度适应新布局 */
:deep(.el-form-item__label) {
  width: 108px !important;
}
</style>
